
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">

    <style type="text/css">

        @font-face {font-family: "ultfont";
          src: url('iconfont.eot'); /* IE9*/
          src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
          url('iconfont.woff') format('woff'), /* chrome, firefox */
          url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
          url('iconfont.svg#ultfont') format('svg'); /* iOS 4.1- */
        }

        .ultfont {
          font-family:"ultfont" !important;
          font-size:16px;
          font-style:normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: 0.2px;
          -moz-osx-font-smoothing: grayscale;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon ultfont">&#xe617;</i>
                    <div class="name">wechat_line_MT_UI</div>
                    <div class="code">&amp;#xe617;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe630;</i>
                    <div class="name">QQ</div>
                    <div class="code">&amp;#xe630;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe602;</i>
                    <div class="name">user</div>
                    <div class="code">&amp;#xe602;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe77d;</i>
                    <div class="name">compass</div>
                    <div class="code">&amp;#xe77d;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe77f;</i>
                    <div class="name">close-circle</div>
                    <div class="code">&amp;#xe77f;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe77e;</i>
                    <div class="name">info-circle</div>
                    <div class="code">&amp;#xe77e;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe781;</i>
                    <div class="name">plus-circle</div>
                    <div class="code">&amp;#xe781;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe782;</i>
                    <div class="name">question-circle</div>
                    <div class="code">&amp;#xe782;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe78e;</i>
                    <div class="name">setting</div>
                    <div class="code">&amp;#xe78e;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe791;</i>
                    <div class="name">export</div>
                    <div class="code">&amp;#xe791;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe794;</i>
                    <div class="name">Import</div>
                    <div class="code">&amp;#xe794;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe792;</i>
                    <div class="name">app store</div>
                    <div class="code">&amp;#xe792;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe793;</i>
                    <div class="name">detail</div>
                    <div class="code">&amp;#xe793;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe797;</i>
                    <div class="name">plus-square</div>
                    <div class="code">&amp;#xe797;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe798;</i>
                    <div class="name">wallet</div>
                    <div class="code">&amp;#xe798;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7ae;</i>
                    <div class="name">user</div>
                    <div class="code">&amp;#xe7ae;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7af;</i>
                    <div class="name">team</div>
                    <div class="code">&amp;#xe7af;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7b4;</i>
                    <div class="name">file done</div>
                    <div class="code">&amp;#xe7b4;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7b5;</i>
                    <div class="name">file sync</div>
                    <div class="code">&amp;#xe7b5;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7c0;</i>
                    <div class="name">safety certificate</div>
                    <div class="code">&amp;#xe7c0;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7d3;</i>
                    <div class="name">contacts</div>
                    <div class="code">&amp;#xe7d3;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7d4;</i>
                    <div class="name">scan</div>
                    <div class="code">&amp;#xe7d4;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7dd;</i>
                    <div class="name">qrcode</div>
                    <div class="code">&amp;#xe7dd;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7df;</i>
                    <div class="name">block</div>
                    <div class="code">&amp;#xe7df;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7e0;</i>
                    <div class="name">gold</div>
                    <div class="code">&amp;#xe7e0;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7eb;</i>
                    <div class="name">right</div>
                    <div class="code">&amp;#xe7eb;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7ec;</i>
                    <div class="name">left</div>
                    <div class="code">&amp;#xe7ec;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7ed;</i>
                    <div class="name">up</div>
                    <div class="code">&amp;#xe7ed;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7ee;</i>
                    <div class="name">down</div>
                    <div class="code">&amp;#xe7ee;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7f4;</i>
                    <div class="name">menu</div>
                    <div class="code">&amp;#xe7f4;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7f5;</i>
                    <div class="name">unordered list</div>
                    <div class="code">&amp;#xe7f5;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7fc;</i>
                    <div class="name">ellipsis</div>
                    <div class="code">&amp;#xe7fc;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe7fe;</i>
                    <div class="name">plus</div>
                    <div class="code">&amp;#xe7fe;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe846;</i>
                    <div class="name">compass-fill</div>
                    <div class="code">&amp;#xe846;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe850;</i>
                    <div class="name">detail-fill</div>
                    <div class="code">&amp;#xe850;</div>
                </li>
            
                <li>
                <i class="icon ultfont">&#xe853;</i>
                    <div class="name">app store-fill</div>
                    <div class="code">&amp;#xe853;</div>
                </li>
            
        </ul>
        <h2 id="unicode-">unicode引用</h2>
        <hr>

        <p>unicode是字体在网页端最原始的应用方式，特点是：</p>
        <ul>
        <li>兼容性最好，支持ie6+，及所有现代浏览器。</li>
        <li>支持按字体的方式去动态调整图标大小，颜色等等。</li>
        <li>但是因为是字体，所以不支持多色。只能使用平台里单色的图标，就算项目里有多色图标也会自动去色。</li>
        </ul>
        <blockquote>
        <p>注意：新版iconfont支持多色图标，这些多色图标在unicode模式下将不能使用，如果有需求建议使用symbol的引用方式</p>
        </blockquote>
        <p>unicode使用步骤如下：</p>
        <h3 id="-font-face">第一步：拷贝项目下面生成的font-face</h3>
        <pre><code class="lang-js hljs javascript">@font-face {
  font-family: <span class="hljs-string">'ultfont'</span>;
  src: url(<span class="hljs-string">'iconfont.eot'</span>);
  src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
  url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
  url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
  url(<span class="hljs-string">'iconfont.svg#ultfont'</span>) format(<span class="hljs-string">'svg'</span>);
}
</code></pre>
        <h3 id="-iconfont-">第二步：定义使用iconfont的样式</h3>
        <pre><code class="lang-js hljs javascript">.ultfont{
  font-family:<span class="hljs-string">"ultfont"</span> !important;
  font-size:<span class="hljs-number">16</span>px;font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
  -moz-osx-font-smoothing: grayscale;
}
</code></pre>
        <h3 id="-">第三步：挑选相应图标并获取字体编码，应用于页面</h3>
        <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"ultfont"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre>

        <blockquote>
        <p>"ultfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>


</body>
</html>
